<!DOCTYPE html>
<html lang="zh-cn">
     <head>
        <meta charset="utf-8">
        <title>添加</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="renderer" content="webkit">
        <link rel="shortcut icon" href="assets/img/favicon.ico" />
        <link href="/admin/assets/css/backend.min.css" rel="stylesheet">
        <script type="text/javascript">
            var require = {
                "config": {
                    "site": {
                        "name": "FastAdmin",
                        "cdnurl": "./",
                        "version": "1.0.0",
                        "timezone": "Asia/Shanghai",
                        "languages": {
                            "backend": "zh-cn",
                            "frontend": "zh-cn"
                        }
                    },
                    "upload": {
                        "cdnurl": "./",
                        "uploadurl": "/qiniu/localupload",
                        "bucket": "yourbucketname",
                        "maxsize": "10mb",
                        "mimetype": "*",
                        "multipart": {
                            "policy": "eyJidWNrZXQiOiJ5b3VyYnVja2V0bmFtZSIsInNhdmUta2V5IjoiXC91cGxvYWRzXC97eWVhcn17bW9ufXtkYXl9XC97ZmlsZW1kNX17LnN1ZmZpeH0iLCJleHBpcmF0aW9uIjoxNTAwNTI2NTczLCJub3RpZnktdXJsIjoiaHR0cDpcL1wvd3d3LnlvdXJzaXRlLmNvbVwvdXB5dW5cL25vdGlmeSJ9",
                            "signature": "043eaf09c0319b1a9a11d06511bfdc4e",
                            "bucket": "yourbucketname",
                            "save-key": "/uploads/{year}{mon}{day}/{filemd5}{.suffix}",
                            "expiration": 1500526573,
                            "notify-url": "http://www.yoursite.com/upyun/notify"
                        },
                        "multiple": true
                    },
                    "modulename": "admin",
                    "controllername": "tabletemplate",
                    "actionname": "index",
                    "jsname": "../js/article/add.js",
                    "moduleurl": "./",
                    "language": "zh-cn",
                    "referer": null
                }
            };
        </script>
    </head>

    <body class="inside-header inside-aside is-dialog">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <div class="content">
                                   <input type="file" name="file" style="display: none;">
                                <form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="/admin/depart/save">
                                   <input th:if="${id!=null}" type="hidden" name="id" th:value="${id}">
                                    <div class="form-group">
                                        <label for="name" class="control-label col-xs-12 col-sm-2">班级名称:</label>
                                        <div class="col-xs-12 col-sm-8">
                                            <input id="name" class="form-control" name="name" type="text" th:value="${name}" data-rule="required" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="weibo" class="control-label col-xs-12 col-sm-2">班级围脖:</label>
                                        <div class="col-xs-12 col-sm-8">
                                            <input id="name" class="form-control" name="weibo" type="text" th:value="${weibo}" data-rule="required" >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="balance" class="control-label col-xs-12 col-sm-2">班费:</label>
                                        <div class="col-xs-12 col-sm-8">
                                            <input th:if="${balance!=null}"  id="c-keywords" class="form-control" type="number" th:value="${balance}" readonly>
                                            <input th:if="${balance==null}" id="c-keywords" class="form-control" name="balance" type="number" >
                                        </div>
                                    </div>
                               		<div class="form-group"> 
						                <label for="img" class="control-label col-xs-12 col-sm-2"> 图&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp片 </label> 
						                <div class="col-xs-12 col-sm-4"> 
						              	 <input type="hidden" name="logo" id="logo" th:value="${logo}"  data-rule="required" /> 
						                 <a id="input_avatar" href="javascript:void(0);" class="uploadBtn">
						                  <img  th:if="${logo}==null" id="avatar-img" src="/web/image/InfoPage/uploadImg.png" style="width: 51px;height: 51px;" /> 
						                 <img  th:if="${logo}!=null" id="avatar-img" th:src="${logo}" style="width: 100px;height: 100px;" />
						                 </a> 
						                </div> 
				             	    </div> 
                                    <div class="form-group">
                                        <label for="intro" class="control-label col-xs-12 col-sm-2">内容:</label>
                                        <div class="col-xs-12 col-sm-8">
                                            <textarea id="c-content" class="form-control summernote" name="intro" th:text="${intro}" cols="50" rows="10"></textarea>
                                        </div>
                                    </div>
                                    <div class="form-group hide layer-footer">
                                        <label class="control-label col-xs-12 col-sm-2"></label>
                                        <div class="col-xs-12 col-sm-8">
                                            <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
                                            <button type="reset" class="btn btn-default btn-embossed">重置</button>
                                        </div>
                                    </div>
                                </form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/admin/assets/js/require.min.js" data-main="/admin/assets/js/require-backend.min.js"></script>
    </body>
</html>